/ Assembly List / LJCNetCommon / TextBuilder / AddLine

Namespace - LJCNetCommon


Parameters
text - The add text.

Returns

The added text line.

Syntax

C#
public String AddLine(String text = null)

Adds a text line without modification.

Remarks

AddLine() is an "Append" method. It adds the unmodified text line to the builder.

Example

C#
// Defaults: IndentCharCount = 2, LineLimit = 80, WrapEnabled = false.
var tb = new TextBuilder();

// Example Method:
// Adds text that ends with a newline.
tb.AddLine("This is an appended line.");

tb.AddText(":");
var result = tb.ToString();

// result:
// This is an appended line.
// :

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.